//
//  Header.swift
//  BellManage
//
//  Created by Bestsch on 16/3/29.
//  Copyright © 2016年 wsl. All rights reserved.
//

import UIKit

/// UILable的灰色字体颜色
let textlight: UIColor = UIColor(hexString: "9b9b9b", alpha: 1.0)
let lightText: UIColor = UIColor(hexString: "DBDBDB", alpha: 1.0)
/// 屏幕宽度
let screenW = UIScreen.main.bounds.width
let screenH = UIScreen.main.bounds.height

let photoSize = (screenW - 30 - 8)/3
let AddphotoSize = (screenW - 20 - 12)/4

let photoInsets = 4

/**
 *  李倩的接口 webappapi.ashx
 */
var webappapi = "/webapp/apps/webappapi.ashx"
var schappapi = "/webapp/apps/schwebappapi.ashx"
/// 铃铛的统计接口
var Statistics = "/webapp/apps/StatisticsHandler.ashx"
/**
 *  管理版的接口－－李倩提供
 */
var adminwebapppi = "/webapp/apps/admin/adminwebapppi.ashx"
let superWebapp = "/webapp/apps/admin/Superwebapi.ashx"
var requestHeader = "<?xml version=\"1.0\" encoding=\"utf-8\"?><rss version=\"2.0\"><channel><t>"

//1230 - 登录接口变化
var userLogin = "/webapp/apps/UserLogin.ashx"

/**
 *  办公版的接口－－李璇提供
 */
var adminofficewebappapi = "/webapp/apps/GJ_ModularmentBG.ashx"

var barColor: UIColor {
    
    #if EDUMANAGE || HSEDUMANAGE || TXEDUMANAGE || HYEDUMANAGE
        return UIColor(hexString: "4e92df", alpha: 1)
    #elseif BELLSUPER || HSSUPER || TXSUPER || HYCLOUDSUPER
        return UIColor(hexString: "d0021b", alpha: 1)
    #endif
}

var priImg: String {
    
    #if EDUMANAGE || BELLSUPER
        return "/apps/PreImg.ashx?preimg=/EC"
    #else
        return "/apps/PreImg.ashx?preimg="
    #endif
}

var server: String {
    #if EDUMANAGE || BELLSUPER
        return "http://cloud.51lingdang.com/EC"
    #elseif HSEDUMANAGE || HSSUPER
        return "http://cloud.hsjy.net"
    #elseif TXEDUMANAGE || TXSUPER
        return "http://122.225.51.164"
    #elseif HYEDUMANAGE || HYCLOUDSUPER
        return "http://hongyucloud.com/"
    #else
        return ""
    #endif
}

var appname: String {
    
    #if EDUMANAGE
        return "铃铛管家"
    #elseif HSEDUMANAGE
        return "惠山教育"
    #elseif TXEDUMANAGE
        return "桐乡教育"
    #elseif BELLSUPER
        return "铃铛超管"
    #elseif HSSUPER
        return "惠山教育超管"
    #elseif TXSUPER
        return "桐乡教育超管"
    #elseif EDUMANAGE
        return "铃铛"
    #elseif HYCLOUDSUPER
        return "弘育教育超管"
    #elseif HYEDUMANAGE
        return "弘育教育管家"
    #endif
}

var logo: UIImage {
    
    #if EDUMANAGE || BELLSUPER
        return #imageLiteral(resourceName: "logo")
    #elseif HSEDUMANAGE
        return #imageLiteral(resourceName: "hslogo")
    #elseif TXEDUMANAGE
        return #imageLiteral(resourceName: "txlogo")
    #elseif HSSUPER
        return #imageLiteral(resourceName: "hssuperLogo")
    #elseif TXSUPER
        return #imageLiteral(resourceName: "txsuperLogo")
    #elseif HYCLOUDSUPER
        return #imageLiteral(resourceName: "hysuperlogo")
    #elseif HYEDUMANAGE
        return #imageLiteral(resourceName: "hyedulogo")
    #endif
}

//获取本地的数据
let DBName: String = "location.db"
let tableName: String = "user_table"

//1228 - 之后添加 -
// 网络状态 - Reachability ==============
let reachability = Reachability.forInternetConnection()


//超管 -  =============
//访问量排行 -
let trafficArrayToday: String = "trafficArrayToday"
let trafficArrayAll: String = "trafficArrayAll"
//活跃度排行 -
let activeArray: String = "activeArray"
//学校详情 -
let schStatisArray: String = "schStatisArray"


//管家 - 家校 - ============
//1、全校通知
//2、数据日报
//3、统计分析
//4、家长关注
//5、班级活动
let classWorkWorkArray: String = "classWorkWorkArray"
let classWorkClassArray: String = "classWorkClassArray"
let classWorkTeacherArray: String = "classWorkTeacherArray"

//6、通知公告
//7、班级荣誉
let honorWorkArray: String = "honorWorkArray"
let honorClassArray: String = "honorClassArray"
let honorTeacherArray: String = "honorTeacherArray"

//8、课程表
//9、成长记录
//10、今日请假
//11、今日考勤
//12、作业备忘
//11、调查问卷









